package com.gp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gp.mapper.BaseAccessLogsMapper;
import com.gp.model.dto.Count;
import com.gp.model.entity.AccessLog;
import com.gp.service.IBaseAccessLogsService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 弓成龙
 * @since 2017-11-26
 */
@Service
public class BaseAccessLogsServiceImpl extends ServiceImpl<BaseAccessLogsMapper, AccessLog> implements IBaseAccessLogsService {
  
  @Autowired
  private BaseAccessLogsMapper accesslogMapper; 
  
  @Override
  public Page<Count> listInterAccessCount(Page page) {
    return page.setRecords(accesslogMapper.listInterAccessCount(page));
  }

  @Override
  public Page<Count> listPV(String url, String starttime, String endtime) {
    return null;
  }

  @Override
  public Page<Count> listUV(String url, String starttime, String endtime) {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  public Page<Count> listActive() {
    return null;
  }

  @Override
  public Page<Count> listKeepOrTurn() {
    return null;
  }

  @Override
  public List<Count> countSiteAccessPV() {
    return accesslogMapper.countSiteAccessPV();
  }
  
  @Override
  public List<Count> countSiteAccessUV() {
    return accesslogMapper.countSiteAccessUV();
  }

  @Override
  public List<Count> countBrowser() {
    return accesslogMapper.countBrowser();
  }
    
}
